/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/* nixonFTP
 * FTP client version 0.1
 * Copyright (C) 2010 NIXON Development Corporation.
 * All rights reserved.
 * http://members.shaw.ca/nixon.com
*/

package nixonftp.ui;

import nixonftp.*;
import java.awt.event.ActionEvent;
import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;
import javax.swing.JMenu;

public class NXTraverseMenu extends JMenu implements MouseListener {
	private String dir;

	public NXTraverseMenu(String label, String dir, boolean top) {
		super(label);
		setDir(dir);
		add(new NXMenuItem("Here", "Here"));
		if (!top) setIcon(NXIcon.small[2]);
		this.addMouseListener(this);
	}

	public void setDir(String s) {
		this.dir = s;
	}

	public String getDir() {
		return dir;
	}

	public void mouseClicked(MouseEvent e) {
		this.fireActionPerformed(new ActionEvent(this, 0, ""));
	}

	public void mousePressed(MouseEvent e) {
	}

	public void mouseReleased(MouseEvent e) {
	}

	public void mouseEntered(MouseEvent e) {
	}

	public void mouseExited(MouseEvent e) {
	}
}
